package com.cyf.db.mapper;

import com.cyf.db.bean.LocalAdminGroup;
import com.cyf.db.bean.LocalManageAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by asus on 2018/11/22.
 */
@Mapper
public interface LocalAdminGroupMapper {

    @Select("select * from local_admingroup where parkingId=#{m.parkingId} and " +
            "localAdmingroupId=#{m.groupId} order by id desc limit 1")
    LocalAdminGroup selectAdminGroupList(@Param("m")LocalManageAccount m);

}
